package com.ly.cloud.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ly.cloud.dto.TeacherDto;
import com.ly.cloud.entity.TeacherPo;
import com.ly.cloud.vo.CodeDetailVo;
import com.ly.cloud.vo.TeacherSimpleVo;
import com.ly.cloud.vo.TeacherVo;

/**
 * 教职工Mapper
 * @author caihuihai
 * @date 2018年12月13日 下午4:25:51
 */
@Mapper
public interface TeacherMapper extends BaseMapper<TeacherPo> {

	List<TeacherVo> selectPage(@Param("page")Pagination page,@Param("dto")TeacherDto dto);

	/**
	 * 查询教职工列表（下拉）
	 * @return
	 */
	List<TeacherSimpleVo> findTeachList();

	/**
	 * 根据代码查询对应的下拉值
	 * @param dm
	 * @return
	 */
	List<CodeDetailVo> findDmjList(@Param("dm")String dm);

}
